@import '~@/styles/theme.less';

.group {
  margin-top: 10px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  .item {
    display: flex;
    flex-direction: column;
    position: relative;
    width: calc((100% - 20px * 3) / 4);
    height: 216px;
    margin-right: 20px;
    margin-bottom: 20px;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 1);
    border-radius: 2px;
    transition: all .3s;
    &.disabled-click {
      cursor: not-allowed;
    }
    &:nth-child(4n + 4) {
      margin-right: 0;
    }
    &:hover {
      // border-color: @primary-color;
      box-shadow: 0px 6px 18px 0px rgba(20, 30, 44, 0.1);
      .delete-league {
        display: block;
      }
    }
    &.isGuomi {
      background-image: url('~@/images/fabric/chuo.svg');
      background-repeat: no-repeat;
      background-position: calc(100% - 12px) calc(100% - 14px);
      background-size: auto;
    }
    &:active {
      border-color: @primary-color;
      box-shadow: 0px 6px 18px 0px rgba(20, 30, 44, 0.1);
    }
    &:focus {
      border-color: @primary-color;
      box-shadow: 0px 6px 18px 0px rgba(20, 30, 44, 0.1);
    }
    .header {
      display: flex;
      width: 100%;
      padding-bottom: 15px;
      border-bottom: 1px solid #f7f7f9;
      .name-wrapper {
        margin-top: -3.5px;
        width: calc(100% - 20px);
        .title-wrapper{
          display: flex;
          justify-content: space-between;
          align-items: center;
          margin-bottom: 5px;
          .operate{
            display: flex;
            flex-direction: column;
            width: 15px;
            height: 15px;
            align-items: center;
            justify-content: space-around;
            span{
              width: 2px;
              height: 2px;
              border-radius: 50%;
              background: #999999;
            }
            &:hover{
              span{
                background: @primary-color;
              }
            }
          }
          .performance {
            padding: 1px 10px;
            font-size: 12px;
            font-family: PingFangSC-Regular, PingFang SC;
            font-weight: 400;
            color: #FE983D;
            line-height: 18px;
            border: 1px solid #FE983D;
            background: #FEF9ED;
            border-radius: 2px;
          }
          .company_p{
            color: @success;
            border-color: @success;
            background: #EDF8E8;
          }
          .basic_p{
            color: #FE983D;
            border-color: #FE983D;
            background:  #FEF9ED;
          }
        }
        .name {
          font-size: 14px;
          font-family: PingFangSC-Regular, PingFang SC;
          font-weight: 400;
          color: @formLabel;
          line-height: 20px;
          overflow:hidden;
          text-overflow:ellipsis;
          white-space:nowrap;
          width: calc(100% - 73px);
        }
        .org-address {
          font-size: 12px;
          color: @placeholderColor;
          line-height: 18px;
        }
      }
      .status {
        font-size: 12px;
        font-family: PingFangSC-Regular, PingFang SC;
        color: rgba(23, 30, 45, 0.65);
        margin-right: 6px;
        img{
          width: 14px;
          height: 14px;
        }
      }
    }


    .delete-league {
      width: 32px;
      height: 24px;
      right: 0px;
      position: absolute;
      top: 16px;
      display: none;
      z-index: 100;
      .show-delete {
        display: flex;
        width: 32px;
        height: 24px;
        align-items: center;
        justify-content: center;
        border-radius: 4px 0px 0px 4px;
        border: 1px solid rgba(232, 234, 238, 1);
        border-right: none;
        background: rgba(247, 247, 247, 1);
        cursor: pointer;
        .delete-img {
          width: 11px;
          height: 10px;
          background-size: cover !important;
          background-image: url("../../../../../images/fabric/icon_delete.svg");
        }
        &:hover {
          border-color: @primary-color;
          background: rgba(247, 247, 247, 1);
          .delete-img {
            background-image: url("../../../../../images/fabric/icon_delete-hover.svg");
          }
        }
        &:active {
          border-color: #0073e3;
          background: rgba(247, 247, 247, 1);
          .delete-img {
            background-image: url("../../../../../images/fabric/icon_delete-active.svg");
          }
        }
      }
    }
    .info {
      display: flex;
      flex-direction: column;
      margin-top: 14px;
      font-size: 12px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      color: rgba(23, 30, 45, 0.45);
      line-height: 20px;
      .info-item {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 8px;
        .info-value {
          color: rgba(23, 30, 45, 0.85);
          text-align: right;
          flex: 1;
          margin-left: 8px;
          .ellipsis-lines(1);
        }
        &:nth-child(1) {
          margin-top: 0;
        }
        .league-text {
          width: calc(100% - 72px);
        }
      }
    }
    .ellipsis {
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      word-break: break-all;
    }
    .has-status {
      display: inline-block;
      max-width: calc(100% - 85px);
    }
    .not-status {
      display: inline-block;
      width: calc(100% - 48px);
    }
  }

  .create {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    font-size: 18px;
    //flex-direction: row;
    font-weight: 400;
    //color: @normalColor;
    cursor: pointer;

    .plus {
      font-size: 14px;
      margin-right: 10px;
      //svg{
      //  color: @normalColor;
      //}
    }
  }
}
